package demo2;

import demo1.Book;
import demo1.BookList;

public class ShowOperation implements IOoperation{
    @Override
    public void work(BookList bookList) {
        int currentSize = bookList.getUseSize();
        for (int i = 0; i < currentSize; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
